//
//  MSSetUpCell.m
//  美娱
//
//  Created by No.8 on 2019/4/9.
//  Copyright © 2019 No.8. All rights reserved.
//

#import "MSSetUpCell.h"

@implementation MSSetUpCell

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    MSSetUpCell * cell = [tableView dequeueReusableCellWithIdentifier:[MSSetUpCell ID]];
    cell = [[MSSetUpCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[MSSetUpCell ID]];
    cell.backgroundColor = backgroundcolor;
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setMember];
    }
    return self;
}

- (void)setMember{
    
    
    /** 头像*/
    self.IMGName = [[UIImageView alloc] initWithFrame:CGRectMake(40 * px, 20 * px, 80 * px, 80 * px)];
    //    self.IMGName.image = [UIImage imageNamed:<#name#>];
    [self addSubview:self.IMGName];
    
    
    /** 名称*/
    self.TitleName = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.IMGName.frame) + 40 * px, self.IMGName.y, 300 * px, self.IMGName.height)];
    self.TitleName.textColor = [UIColor whiteColor];
    self.TitleName.textAlignment = NSTextAlignmentLeft;
    self.TitleName.font = [UIFont systemFontOfSize:SYRealValue(30 / 2)];
    [self addSubview:self.TitleName];
    
    
    /** 分割线*/
    self.LineView = [[UIView alloc] initWithFrame:CGRectMake(40 * px, 140 * px - 1, ScreenWidth - 80 * px, 1)];
    self.LineView.backgroundColor = BackViewColor;
    [self addSubview:self.LineView];
    
}


+(NSString *)ID{
    return @"cell";
}
@end
